//
//  PlayToolBar.m
//  代码约束播放界面
//
//  Created by dllo on 16/8/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "PlayToolBar.h"

@interface PlayToolBar ()

@end

@implementation PlayToolBar

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self configToolBar];
    }
    return self;
}

- (void)configToolBar
{
    UIBarButtonItem *love = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"love"] style:UIBarButtonItemStylePlain target:self action:@selector(loveAction:)];
    
    UIBarButtonItem *parrern = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"parrern"] style:UIBarButtonItemStylePlain target:self action:@selector(parrernAction:)];
    
    UIBarButtonItem *downloand = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"download"] style:UIBarButtonItemStylePlain target:self action:@selector(downloandAction:)];
    
    
    UIBarButtonItem *share = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"share"] style:UIBarButtonItemStylePlain target:self action:@selector(shareAction:)];
    
    UIBarButtonItem *song = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"song1"] style:UIBarButtonItemStylePlain target:self action:@selector(songAction:)];
    UIBarButtonItem *filexible = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
    
    
    self.items = @[love, filexible, parrern, filexible, downloand, filexible, share, filexible, song];
    [self setBackgroundImage:[UIImage new] forToolbarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault];
    [self setShadowImage:[UIImage new] forToolbarPosition:UIBarPositionAny];
    self.tintColor = [UIColor colorWithRed:0.85 green:0.85 blue:0.85 alpha:1];
    
    
    
}



- (void)loveAction:(UIBarButtonItem *)sender
{
    
}

- (void)parrernAction:(UIBarButtonItem *)sender
{
    
}

- (void)downloandAction:(UIBarButtonItem *)sender
{
    
}

- (void)shareAction:(UIBarButtonItem *)sender
{
    
}

- (void)songAction:(UIBarButtonItem *)sender
{
    
}

@end
